Skip to content

Conversation

@tillrohrmann
Copy link
Contributor

The vqueue items table is intended to store the payload of a vqueue item (e.g. the invocation or the state mutation). The item is stored when it is being enqueued into the vqueue and removed once the vqueue item ends. The payload can be accessed by the tuple (qid, created_at, kind, entry_id). The creation timestamp is part of the key in order to establish the insertion order into the given vqueue.

Copy link
Contributor

@AhmedSoliman AhmedSoliman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks straightforward to me.

Comment on lines 11 to 12
use crate::TableKind::VQueue;
use crate::keys::{KeyKind, define_table_key};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'd appreciate if you move crate imports to the end.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix before merging.

The vqueue items table is intended to store the payload of a vqueue item (e.g.
the invocation or the state mutation). The item is stored when it is being enqueued
into the vqueue and removed once the vqueue item ends. The payload can be accessed
by the tuple (qid, created_at, kind, entry_id). The creation timestamp is part of
the key in order to establish the insertion order into the given vqueue.
@tillrohrmann tillrohrmann merged commit 44b84d4 into restatedev:main Dec 2, 2025
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2025
@tillrohrmann tillrohrmann deleted the vqueues/items branch December 2, 2025 11:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants